package com.ruoyi.employeeInfomation.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 员工信息表对象 salary_employee
 *
 * @author ruoyi
 * @date 2024-08-12
 */
@TableName(resultMap = "com.ruoyi.employeeInfomation.mapper.SalaryEmployeeMapper.SalaryEmployeeResult")
public class SalaryEmployee extends BaseEntity
        {
private static final long serialVersionUID = 1L;

    /** id */
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 工号(随机生成) */
            @Excel(name = "工号(随机生成)")
    private String jobNumber;

    /** 姓名 */
            @Excel(name = "姓名")
    private String name;

    /** 性别 */
            @Excel(name = "性别")
    private String sex;

    /** 年龄 */
            @Excel(name = "年龄")
    private Long age;

    /** 底薪 */
            @Excel(name = "底薪")
    private BigDecimal salary;

    /** 入职日期 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateOfEntry;

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setJobNumber(String jobNumber)
            {
            this.jobNumber = jobNumber;
            }

    public String getJobNumber()
            {
            return jobNumber;
            }
    public void setName(String name)
            {
            this.name = name;
            }

    public String getName()
            {
            return name;
            }
    public void setSex(String sex)
            {
            this.sex = sex;
            }

    public String getSex()
            {
            return sex;
            }
    public void setAge(Long age)
            {
            this.age = age;
            }

    public Long getAge()
            {
            return age;
            }
    public void setSalary(BigDecimal salary)
            {
            this.salary = salary;
            }

    public BigDecimal getSalary()
            {
            return salary;
            }
    public void setDateOfEntry(Date dateOfEntry)
            {
            this.dateOfEntry = dateOfEntry;
            }

    public Date getDateOfEntry()
            {
            return dateOfEntry;
            }

@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobNumber", getJobNumber())
            .append("name", getName())
            .append("sex", getSex())
            .append("age", getAge())
            .append("salary", getSalary())
            .append("dateOfEntry", getDateOfEntry())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
        .toString();
        }
        }